<?php
/**
 * @author krku
 */

function smarty_block_phpbb_bbcode($params, $content, &$smarty, &$repeat) {
	$bbcode = new bbcode($params['bitfield']);

	$bbcode->bbcode_second_pass($content, $params['uid']);

	$content = bbcode_nl2br(str_replace("{SMILIES_PATH}", Config::Get('PATH_FORUM') . '/images/smilies', $content));
	
	return $content;
}
?>